package com.zzb.projectfactory.controller.admin;

import com.zzb.projectfactory.framework.common.BaseController;
import com.zzb.projectfactory.framework.role.entity.User;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

import javax.servlet.http.HttpServletRequest;

/**
 *
 * Created by zhangzhenbin on 17-2-22.
 */
@Controller
@RequestMapping("/admin")
public class AdminMainController extends BaseController {
    @RequestMapping({"/index","/",""})
    public String index(HttpServletRequest request, Model model){
        User user = getCurrentUser(request);
        model.addAttribute("user",user);
        return "admin/index";
    }
}
